import request from '@/utils/request'

export const getMenuList = () => {
  return request({
    url: '/service-user/menu/getmenu',
    method: 'get',
  })
}
export const saveMenu = data => {
  return request({
    url: '/service-user/menu/savemenu',
    method: 'post',
    params: data,
  })
}
export const removemenu = menuId => {
  return request({
    url: '/service-user/menu/removemenu',
    method: 'post',
    params: {
      menuId: menuId,
    },
  })
}
// 获取菜单
export const GetMenus = params => {
  return request({
    url: '/admin/system/menu/menus',
    method: 'get',
    params,
  })
}
